
namespace JTZY.Model.Goods
{
    /// <summary>
    /// 商品分类
    /// </summary>
    [SugarTable("corecmsgoodscategory")]
    public class Corecmsgoodscategory
    {
        /// <summary>
        /// 序列 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 上级分类id 
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 分类名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 类型ID 关联 goods_type.id 
        /// </summary>
        public int TypeId { get; set; }

        /// <summary>
        /// 分类排序 
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 分类图片ID 
        /// </summary>
        public string ImageUrl { get; set; }

        /// <summary>
        /// 是否显示 
        /// </summary>
        public bool IsShow { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<Corecmsgoodscategory> Children { get; set; }
    }
}